package com.augurit.common.entity;


import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;


/**
 * 表结构元数据定义
 */
@Entity
@Table(name = "SYS_META_TABLE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class SysMetaTable {
	 
	private Long id;
	private String tableName;           //表名
	private String entityName;
	private String owner;				//所属用户
	private String tableChineseComments;	//表中文名
	private String memo;				//描述
	private String smartform;			//是否是智能表单中的表
	private String pageId;				//表单ID
	private String formName;			//表名（英文）
	private String category;			//表单分类
	private Date createTime;			//创建时间
	private Integer version;			//版本
	private String parentFormName;		//父表单ID
	private String parentTableName;		//父表单英文全名
	private String rawXml;				//原始xml字符串（数据结构）
	
	public String getSmartform() {
		return smartform;
	}
	public void setSmartform(String smartform) {
		this.smartform = smartform;
	}
	public String getFormName() {
		return formName;
	}
	public void setFormName(String formName) {
		this.formName = formName;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Integer getVersion() {
		return version;
	}
	public void setVersion(Integer version) {
		this.version = version;
	}
	public String getPageId() {
		return pageId;
	}
	public void setPageId(String pageId) {
		this.pageId = pageId;
	}
	public String getParentFormName() {
		return parentFormName;
	}
	public void setParentFormName(String parentFormName) {
		this.parentFormName = parentFormName;
	}
	public String getParentTableName() {
		return parentTableName;
	}
	public void setParentTableName(String parentTableName) {
		this.parentTableName = parentTableName;
	}
	public String getRawXml() {
		return rawXml;
	}
	public void setRawXml(String rawXml) {
		this.rawXml = rawXml;
	}
	@Id
	@SequenceGenerator(name="SEQ_SYS_META_TABLE", sequenceName="SEQ_SYS_META_TABLE", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_SYS_META_TABLE")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public String getOwner() {
		return owner;
	}
	public void setOwner(String owner) {
		this.owner = owner;
	}
	
	public String getTableChineseComments() {
		return tableChineseComments;
	}
	public void setTableChineseComments(String tableChineseComments) {
		this.tableChineseComments = tableChineseComments;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public String getEntityName() {
		return entityName;
	}
	public void setEntityName(String entityName) {
		this.entityName = entityName;
	}
}
